<form id="myform" action="__APP__?g={:GROUP_NAME}&m={:MODULE_NAME}&a=set_role_page" method="post" class="form-horizontal">
	<div class="modal-header">
		<button type="button" data-dismiss="modal" aria-hidden="true" class="close">×</button>
		<h4 id="modal-responsive-label" class="modal-title">请选择您要授权的页面</h4>
	</div>
	<div class="modal-body">
		<div class="row">
			<div class="col-md-10 col-md-offset-1">
				<ul class="nav nav-stacked page-list">
					<volist name="list" id="vo">
						<notempty name="vo.sub_list">
							<li>
								<input type="checkbox" name="pageid[]" value="{$vo.id}" class="page_checkall" onchange="set_check(this)" <in name='vo.id' value="$pageIds">checked</in> />
								<a role="button" data-toggle="collapse" href="#{$vo.id}" aria-expanded="false" aria-controls="{$vo.id}">&nbsp;{$vo.name}<i class="fa fa-angle-right pull-right"></i></a>
								<ul class="nav nav-stacked collapse sub-list" id="{$vo.id}">
									<volist name="vo.sub_list" id="item">
										<li><label><input type="checkbox" name="pageid[]" id="{$item.id}" value="{$item.id}"  onchange="set_parent_check(this)" <in name='item.id' value="$pageIds">checked</in> />&nbsp;&nbsp;{$item.name}</label></li>
									</volist>
								</ul>
							</li>
						<else />
							<li><input type="checkbox" name="pageid[]" value="{$vo.id}" class="page_checkall" <in name='vo.id' value="$pageIds">checked</in> /><a href="javascript:void(0)">&nbsp;{$vo.name}<i class="fa fa-angle-right pull-right"></i></a></li>
						</notempty>
					</volist>
				</ul>				
			</div>
		</div>
	</div>
	<div class="modal-footer">
		<input type="hidden" name="roleid" value="{$roleid}" />
		<button type="button" data-dismiss="modal" class="btn btn-default">取消</button>&nbsp;
		<button type="submit" class="btn btn-primary">保存</button>
	</div>
</form>